package com.whd.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@TableName("register")
@Data
public class Register {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String healthStatus;
    private BigDecimal temperature;
    private Date time;
    private String isGoOut;
    private String workingStatus;
    private String remark;

    // TableField注解表示数据库不存在的字段，而Java中需要使用，加上这个注解就不会报错
    //姓名
    @TableField(exist = false)
    private String name;
    //学院
    @TableField(exist = false)
    private String college;
    //是否启用
    @TableField(exist = false)
    private Integer isAble;
}
